import { createApp } from 'vue'
import { pinia } from '@/stores'
import persist from 'pinia-plugin-persistedstate'
import router from './router'
import App from './App.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/el-loading.css';
import 'element-plus/theme-chalk/el-message.css';

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app
    .use(pinia.use(persist))
    .use(router)
    .mount('#app')
